/**
 * Copyright (C) 2018-2022
 * All rights reserved, Designed By www.yixiang.co

 */
package co.moju.utils;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;


/**
 * <p>
 * 商城商品分类
 * </p>
 *
 * @author ly
 * @since 2019-09-08
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "CateDTO", description = "商城商品分类")
public class CateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "分类编号")
    private Long id;
    /**
     * 上级分类编号
     */
    @ApiModelProperty(value = "上级分类编号")
    private Long pid;

    /**
     * 商品分类名称
     */
    @ApiModelProperty(value = "商品分类名称")
    private String cateName;

    /**
     * 缩略图url
     */
    @ApiModelProperty(value = "缩略图url")
    private String pic;
    /** 金刚区图标 */
    @ApiModelProperty(value = "金刚区图标url")
    private String goldenPic;

    @ApiModelProperty(value = "下级分类")
    private List<CateDTO> children = new ArrayList<>();

}
